package com.lvtulife.common.web.component.session;

import org.springframework.session.web.http.DefaultCookieSerializer;

/**
 * SpringSerssion 自定义Cookie名称
 */
public class CustomCookieSerializer extends DefaultCookieSerializer {
    public CustomCookieSerializer() {
        super.setCookieName("ecls_sid"); // <1>
        super.setCookiePath("/"); // <2>
        super.setDomainNamePattern("^.+?\\.(\\w+\\.[a-z]+)$"); // <3>
    }
}
